home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 2
/
Amiga Tools 2.iso
/
tex
/
macros
/
source
/
base
/
fntguide.tex
/
node24_mn.html
< prev
next >
Wrap
Text File
|
1995-03-15
|
3KB
|
72 lines
<H2><A ID="SECTION00054000000000000000"><tex2html_anchor_invisible_mark></A>
<A ID="sec:sizefunct"><tex2html_anchor_mark></A><BR>
Size functions
</H2><FONT SIZE="+4"><I>
L<SUP><SMALL>A</SMALL></SUP>T<SMALL>E</SMALL>X<#587#><#587#> provides the following size functions, whose `inputs' are
<#588#>fontarg<#588#> and <#589#>optarg<#589#> (when present).
<#590#>description<#590#>
[`' (empty)]
Load the external font <#591#>fontarg<#591#> at the user-requested size. If
<#592#>optarg<#592#> is present, it is used as the scale-factor.
[s]
Like the empty function but without terminal warnings, only
loggings.
[gen]
Generates the external font from <#593#>fontarg<#593#> followed by
the user-requested size, e.g. |;SPMlt;;SPMlt;8;SPMgt;;SPMgt; ;SPMlt;;SPMlt;9;SPMgt;;SPMgt; ;SPMlt;;SPMlt;10;SPMgt;;SPMgt; gen * cmtt|
[sgen]
Like the `gen' function but without terminal warnings, only loggings.
[sub]
Tries to load a font from a different font shape declaration given by
<#594#>fontarg<#594#> in the form <#595#>family<#595#>|/|<#596#>series<#596#>|/|<#597#>shape<#597#>.
[ssub]
Silent variant of `sub', only loggings.
[subf]
Like the empty function but issues a warning that it has to substitute
the external font <#598#>fontarg<#598#> because the desired font shape was not
available in the requested size.
[ssubf]
Silent variant of `subf', only loggings.
[fixed]
Load font <#599#>fontarg<#599#> as is, disregarding the user-requested size.
If present, <#600#>optarg<#600#> gives the ``at ...pt'' size to be used.
[sfixed]
Silent variant of `fixed', only loggings.
Examples for the use of most of the above size functions can be found
in the file |cmfonts.fdd|---the source for the standard |.fd| files
describing the Computer Modern fonts by Donald Knuth.
<#602#>decl<#602#>
|| <#603#>name<#603#> <#604#>code<#604#>
Declares a size-function <#606#>name<#606#> for use in | |
commands. The interface is still under development but there should be
no real need to a define new size functions.
The <#607#>code<#607#> is executed when the size or size-range in
| | matches the user-requested size.
The arguments of the size-function are automatically parsed and placed
into |@arg| and |@arg| for use in <#608#>code<#608#>. Also
available, of course, is |@size|, which is the user-requested size.
To signal success <#609#>code<#609#> must define the command |@font|
to contain the external name and any scaling options (if present) for
the font to be loaded.
This example sets up the `empty' size function (simplified):
<#610#>tex2html_preform<#610#><tex2html_verbatim_mark>verbatim62#</I></FONT>